/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.teach.entity;

import org.hibernate.validator.constraints.Length;
import com.lczyfz.istep.modules.sys.entity.User;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 学生_考试中间表Entity
 * @author cqh
 * @version 2017-06-15
 */
public class TeachStudentExam extends DataEntity<TeachStudentExam> {
	
	private static final long serialVersionUID = 1L;
	private String distributeId;		// 下发内容id
	private String userId;				// 学生id
	private String examId;				// 考试id
	private Date firstTime;				// 第一次答题时间
	private String examFrequency;		// 可参加考试次数
	
	public TeachStudentExam() {
		super();
	}

	public TeachStudentExam(String id){
		super(id);
	}

	@Length(min=0, max=64, message="下发内容id长度必须介于 0 和 64 之间")
	public String getDistributeId() {
		return distributeId;
	}

	public void setDistributeId(String distributeId) {
		this.distributeId = distributeId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Length(min=0, max=64, message="考试id长度必须介于 0 和 64 之间")
	public String getExamId() {
		return examId;
	}

	public void setExamId(String examId) {
		this.examId = examId;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getFirstTime() {
		return firstTime;
	}

	public void setFirstTime(Date firstTime) {
		this.firstTime = firstTime;
	}
	
	@Length(min=0, max=64, message="可参加考试次数长度必须介于 0 和 64 之间")
	public String getExamFrequency() {
		return examFrequency;
	}

	public void setExamFrequency(String examFrequency) {
		this.examFrequency = examFrequency;
	}
	
}